<template>
  <div>
    <!-- 1. 设置超链接 <router-link> -->
   <router-link to="/home">首页</router-link>&nbsp;
   <router-link to="/movie/2/长津湖">长津湖</router-link>&nbsp;
   <router-link to="/movie/3/钢铁侠">钢铁侠</router-link>&nbsp;
   <router-link to="/movie/6/绿皮书">绿皮书</router-link>&nbsp;
   <router-link to="/music?id=3&name=刘德华">刘德华</router-link>&nbsp;
   <router-link to="/music?id=8&name=张惠妹">张惠妹</router-link>&nbsp;
   <router-link to="/about">关于</router-link>&nbsp;
   <router-link to="/about/you">关于你</router-link>&nbsp;
   <router-link to="/about/me">关于我</router-link>&nbsp;
  <!-- 2. 写hash地址和要展示的组件的对于关系 -->
  <!-- 3. 必须要有一个占位符，表示组件的展示位置 -->
  <hr>
  <!-- 把要展示的组件，展示到这个位置 -->
  <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      comName: 'MyHome'
    }
  },
}
</script>